﻿using System;
using System.Collections.Generic;
using System.Text;
using HAVNet.Core.LitJson;
using HAVNet.Core.IO;
using System.Text.RegularExpressions;

namespace TwitterAnalizer
{
    class Program
    {
        static void Main (string [] args)
        {
            Files.traverseAllLines ("tweets.txt", (string linea) =>
            {
                JsonData jd = JsonMapper.ToObject (linea);
                //Console.WriteLine(jd["user"]["profile_image_url"]);
                //Console.WriteLine(jd["text"]);

                foreach (Match match in Regex.Matches((string)jd["text"], HAVNet.Core.Regexes.url))
                {
                    Console.WriteLine(match.Value);
                }


                Console.WriteLine();
                Console.WriteLine();
            });

            Console.ReadLine();
        }
    }
}
